package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.IdentityAuthApiOrganizationThreeFactorsParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.response.IdentityAuthApiOrganizationThreeFactorsResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/09/29 20:56
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class IdentityAuthApiOrganizationThreeFactorsRequest extends AbstractESignRequest implements
    ESignRequest<IdentityAuthApiOrganizationThreeFactorsResponse> {

  IdentityAuthApiOrganizationThreeFactorsParamBody identityAuthApiOrganizationThreeFactorsParamBody;

  public IdentityAuthApiOrganizationThreeFactorsRequest(
      IdentityAuthApiOrganizationThreeFactorsParamBody identityAuthApiOrganizationThreeFactorsParamBody) {
    this.identityAuthApiOrganizationThreeFactorsParamBody = identityAuthApiOrganizationThreeFactorsParamBody;
    this.setParamBody(identityAuthApiOrganizationThreeFactorsParamBody);
  }

  @Override
  public String getVersion() {
    return "v2";
  }

  @Override
  public String getUrl() {
    return "/identity/auth/api/organization/threeFactors";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }


  @Override
  public Class<IdentityAuthApiOrganizationThreeFactorsResponse> getResponseClass() {
    return IdentityAuthApiOrganizationThreeFactorsResponse.class;
  }
}
